interface ChangeOnlineStatusAPIResData {
  code: number
  msg: string
  time: string
  data: null
}

interface ChangeOnlineStatusAPIData {
  is_online: string
}

export function changeOnlineStatusAPI(data: ChangeOnlineStatusAPIData, token: string) {
  return httpInstance.post<ChangeOnlineStatusAPIResData, ChangeOnlineStatusAPIData>(
    '/api/driver/editOnline',
    data,
    { headers: { token } },
  )
}
